Type Conversion Functions

When two types of numbers are used in an expression, as when a real value is assigned to an integer variable, they must all be converted to the same type before ProModel can evaluate them. ProModel performs this conversion automatically and, in most instances, this conversion will be satisfactory. The only place where the user may want to use a different conversion is when ProModel converts from a real to an integer.

When converting from a real to an integer, ProModel ignores everything to the right of the decimal point. When converting from an integer to a real, ProModel simply adds a decimal point to the integer. ProModel handles name-index numbers exactly like integers. Most often, these automatic conversion will be sufficient, but occasionally it will be necessary to convert between the types differently. For these situations, use the conversion functions.